package cn.itsource.org.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.itsource.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author mochen
 * @since 2023-01-06
 */
@Data
@ToString
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    /*
    * name:表头名
    * orderNum:第几列
    * isImportField:是否是导入列
    * */
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st",exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime = new Date();
    /**
     * 0:待审核 1:审核通过  -1:驳回
     */
    @Excel(name = "状态" ,orderNum = "4", width = 30, isImportField = "true_st",replace = {"通过_1","驳回_-1","待审核_0"})
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long adminId;

    private Employee admin;

}
